<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<div th:remove="tag" th:fragment="sidebar">
	<ul class="nav navbar-nav side-nav" id="sidebar">
		<li class="collapsed-content">
			<ul>
				<li class="search"></li>
			</ul>
		</li>
		<li class="navigation" id="navigation"><a
			href="javascript:void(0)" class="sidebar-toggle"
			data-toggle="#navigation">管理菜单 <i class="fa fa-angle-up"></i>
		</a>
			<div th:remove="tag" shiro:hasPermission="admin:all">
				<ul class="menu">
					<li
						th:class="${menu1 eq 'admin'? 'dropdown open active' : 'dropdown'} ">
						<a href="javascript:void(0)" class="dropdown-toggle"
						data-toggle="dropdown"> <i class="fa fa-address-card"></i>
							管理员管理 <b class="fa fa-plus dropdown-plus"></b>
					</a>
						<ul class="dropdown-menu">
							<li
								th:class="${menu1 eq 'admin' and menu2 eq 'list'? 'active' : ' '} ">
								<a href="/admin/admin/list"> <i class="fa fa-caret-right"></i>
									管理员列表
							</a>
							</li>
							<li
								th:class="${menu1 eq 'admin' and menu2 eq 'add'? 'active' : ' '} ">
								<a href="/admin/admin/add"> <i class="fa fa-caret-right"></i>
									添加管理员
							</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
			<div th:remove="tag" shiro:hasPermission="role:all">
				<ul class="menu">
					<li
						th:class="${menu1 eq 'role'? 'dropdown open active' : 'dropdown'} ">
						<a href="javascript:void(0)" class="dropdown-toggle"
						data-toggle="dropdown"> <i class="fa fa-user-circle-o"></i>
							角色管理 <b class="fa fa-plus dropdown-plus"></b>
					</a>
						<ul class="dropdown-menu">
							<li
								th:class="${menu1 eq 'role' and menu2 eq 'list'? 'active' : ' '} ">
								<a href="/admin/role"> <i class="fa fa-caret-right"></i>角色列表
							</a>
							</li>
							<li
								th:class="${menu1 eq 'role' and menu2 eq 'add'? 'active' : ' '} ">
								<a href="/admin/role/add"> <i class="fa fa-caret-right"></i>添加角色
							</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
			<div th:remove="tag" shiro:hasPermission="permission:all">
				<ul class="menu">
					<li
						th:class="${menu1 eq 'permission'? 'dropdown open active' : 'dropdown'} ">
						<a href="javascript:void(0)" class="dropdown-toggle"
						data-toggle="dropdown"> <i class="fa fa-ticket"></i> 权限管理 <b
							class="fa fa-plus dropdown-plus"></b>
					</a>
						<ul class="dropdown-menu">
							<li
								th:class="${menu1 eq 'permission' and menu2 eq 'list'? 'active' : ' '} ">
								<a href="/admin/permission"> <i class="fa fa-caret-right"></i>权限列表
							</a>
							</li>
							<li
								th:class="${menu1 eq 'permission' and menu2 eq 'add'? 'active' : ' '} ">
								<a href="/admin/permission/add"> <i
									class="fa fa-caret-right"></i>添加权限
							</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
			<div th:remove="tag" shiro:hasPermission="game:all">
				<ul class="menu">
					<li
						th:class="${menu1 eq 'game'? 'dropdown open active' : 'dropdown'} ">
						<a href="javascript:void(0)" class="dropdown-toggle"
						data-toggle="dropdown"> <i class="fa fa-ticket"></i>游戏管理<b
							class="fa fa-plus dropdown-plus"></b>
					</a>
						<ul class="dropdown-menu">
							<li
								th:class="${menu1 eq 'game' and menu2 eq 'list'? 'active' : ' '} ">
								<a href="/admin/game"> <i class="fa fa-caret-right"></i> 游戏列表
							</a>
							</li>
							<li
								th:class="${menu1 eq 'game' and menu2 eq 'add'? 'active' : ' '} ">
								<a href="/admin/game/add"> <i class="fa fa-caret-right"></i> 添加游戏
							</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</li>
	</ul>
</div>
</html>
